*,
::before,
::after {
  box-sizing: border-box;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src:
    url('/fonts/inter-v3-latin-regular.woff2') format('woff2'),
    url('/fonts/inter-v3-latin-regular.woff') format('woff');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src:
    url('/fonts/inter-v3-latin-600.woff2') format('woff2'),
    url('/fonts/inter-v3-latin-600.woff') format('woff');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src:
    url('/fonts/inter-v3-latin-700.woff2') format('woff2'),
    url('/fonts/inter-v3-latin-700.woff') format('woff');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  src:
    url('/fonts/inter-v3-latin-900.woff2') format('woff2'),
    url('/fonts/inter-v3-latin-900.woff') format('woff');
}

:root {
  --unit: 4px;
  --ifm-font-family-base: 'Inter';
  --ifm-color-primary: #5468ff;
  --ifm-color-primary-dark: #324aff;
  --ifm-color-primary-darker: #213bff;
  --ifm-color-primary-darkest: #001ced;
  --ifm-color-primary-light: #7686ff;
  --ifm-color-primary-lighter: #8795ff;
  --ifm-color-primary-lightest: #bac2ff;
  --ifm-color-secondary-grey: #f4f5f7;
  --ifm-p-main: rgba(102, 102, 102, 1);
  --ifm-main: #0a141c;
}

:root[data-theme='dark'] {
  --unit: 4px;
  --ifm-font-family-base: 'Inter';
  --ifm-navbar-link-hover-color: #8b9dff;
  --ifm-link-color: #8b9dff;
  --ifm-menu-color-active: #8b9dff;
  --ifm-background-color: #0a141c;
  --ifm-footer-background-color: #0a141c;
  --ifm-navbar-background-color: #21243d;
  --ifm-menu-color-background-active: #21243d;
  --ifm-color-secondary-grey: #21243d;
  --ifm-p-main: #e1e1e1;
  --ifm-main: #fff;
}

.button--tertiary {
  background: linear-gradient(180deg, #8b9dff 0%, #3578e5 100%);
  color: white;
  border-color: #8b9dff;
}

.table-align--center {
  margin-left: auto;
  margin-right: auto;
  display: table;
}

html,
body {
  -webkit-font-smoothing: antialiased;
}

.m-auto {
  margin: 0 auto !important;
}

.shadow--lg {
  box-shadow: 0 0 2px 0 var(--ifm-color-emphasis-400);
}

/* Hide code blocks according to theme */
[data-theme='light'] .shiki.github-dark {
  display: none;
}

[data-theme='dark'] .shiki.github-light {
  display: none;
}

/* Patches */
pre.shiki > .code-title {
  color: var(--ifm-color-emphasis-900) !important;
}

.book-cover-image {
  border-radius: 0.75rem;
  width: 100%;
}

.image-shadow {
  box-shadow: 6px 6px 39px 0 #8b9cff79;
  -webkit-box-shadow: 6px 6px 39px 0 #8b9cff79;
  -moz-box-shadow: 6px 6px 39px 0 #8b9cff79;
}

.padding--2lg {
  padding: 15rem;
}

.padding-top--2lg {
  padding-top: 15rem;
}

.padding-left--2lg {
  padding-left: 15rem;
}

.padding-right--2lg {
  padding-right: 15rem;
}

.padding-bottom--2lg {
  padding-bottom: 15rem;
}

@media (max-width: 996px) {
  .book-cover-image {
    width: 50%;
  }
}

@media (max-width: 1400px) {
  .padding--2lg {
    padding: 1rem;
  }

  .padding--lg {
    padding: 2rem 0 0 0 !important;
  }

  .padding-top--2lg {
    padding-top: 2rem;
  }

  .padding-left--2lg {
    padding-left: 1rem;
  }

  .padding-right--2lg {
    padding-right: 1rem;
  }

  .padding-bottom--2lg {
    padding-bottom: 1rem;
  }
}
